import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
import useAppStore from './modules/app'
import useUserStore from './modules/user'
import useEditorStore from './modules/editor'

const pinia = createPinia()

// 使用持久化插件
pinia.use(piniaPluginPersist)
export { useAppStore, useUserStore, useEditorStore }
export default pinia